<style type="text/css">
	.am-table .item-title {
        max-width: 200px;
    }
    .am-table .item-title2 {
        max-width: 500px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        text-align: left !important;
        margin: 0;
        white-space: normal;
    }
</style>
<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title am-cf"><{$tit}>列表</div>
                </div>
                <div class="am-tabs am-margin-bottom">
                    <{tabTit1($tabtit)}>
                </div>
                <div class="widget-body am-fr">
                    <{if $tips}>
                    <div class="tips am-margin-bottom-sm am-u-sm-12">
                        <div class="pre">
                            <p> 1：</p>
                        </div>
                    </div>
                    <{/if}>
                    <!-- 工具栏 -->
                    <div class="page_toolbar am-margin-bottom-xs am-cf">
                        <{include file='admin/public/toolbar.php'}>
                    </div>
                    <div class="am-scrollable-horizontal am-u-sm-12">
                        <form id="form-opid" method="post" action="">
                        <table width="100%" class="am-table am-table-compact am-table-striped
                            tpl-table-black am-text-nowrap">
                            <thead>
                            <tr>
                                <th>
                                    <label class="am-checkbox-inline">
                                        <input type="checkbox" id="checkedAllBtn" data-am-ucheck />
                                        ID
                                    </label>
                                </th>
                                <th>用户</th>
                                <th>科室</th>
                                <th>病床</th>
                                <th>调查结果</th>
                                <th>不满意选项</th>
                                <th>内容</th>
                                <th>总调查数量</th>
                                <th>不满意数量</th>
                                <th>满意率</th>

                                <!-- <th>平均得分</th> -->
                                <th>添加时间</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php if ($list): foreach ($list as $val): ?>
                                <tr>
                                    <td class="am-text-middle">
                                        <label class="am-checkbox-inline">
                                            <input type="checkbox" name="opid[]" value="<?= $val['id'] ?>" data-am-ucheck />
                                            <?= $val['id'] ?>
                                        </label>
                                    </td>
                                    <td class="am-text-middle">
                                        <p class="item-title"><{$users[$val.user_id]['nickname']}></p>
                                    </td>
                                    <td class="am-text-middle">
                                        <p class="item-title"><{$zones[$val.zone_id]['name']}></p>
                                    </td>
                                    <td class="am-text-middle">
                                        <p class="item-title"><{$bingchuangs[$val.bingchuang_id]['name']}></p>
                                    </td>

                                    <td class="am-text-middle">
                                        <a href="javascript:void(0);" class="item-info" data-id="<?= $val['id'] ?>">
                                            <p class="item-title2"><?= $val['log'] ?></p><br />
                                            <?= $val['score_log'] ?>
                                        </a>
                                    </td>
                                    <td class="am-text-middle">
                                        <p class="item-title"><?= $val['log_bmy'] ?></p>
                                    </td>
                                    <td class="am-text-middle">
                                        <p class="item-title"><?= $val['intro'] ?></p>
                                    </td>

                                    <td class="am-text-middle"><?= $val['count_num'] ?></td>
                                    <td class="am-text-middle"><?= $val['count_bmy'] ?></td>
                                    <!-- <td class="am-text-middle"><?= $val['bmy_lv'] ?> %</td> -->

                                    <td class="am-text-middle"><?= $val['score'] ?> %</td>

                                    <td class="am-text-middle"><?= $val['add_time'] ?></td>
                                </tr>
                            <?php endforeach; else: ?>
                                <tr>
                                    <td colspan="5" class="am-text-center">暂无记录</td>
                                </tr>
                            <?php endif; ?>
                            </tbody>
                        </table>
                        </form>
                    </div>
                    <div class="am-u-lg-12 am-cf">
                        <{$showPage nofilter}>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        // 审核
        $('.j-act').opid('id', "/<{$routeUrl}>/act");
        // 隐藏
        $('.j-ban').opid('id', "/<{$routeUrl}>/ban");
        // 删除
        $('.j-del').opid('id', "/<{$routeUrl}>/del");

        // 状态
        $('.item-act').act('id', "/<{$routeUrl}>/act");
        // 删除元素
        $('.item-delete').delete('id', "/<{$routeUrl}>/del", '删除后不可恢复，确定要删除吗？');

        // 状态
        $('.item-info').open('id', "/<{$routeUrl}>/info");

        // 状态
        $('.j-qrcode1').opid('id', "/<{$routeUrl}>/qrcode1");
        // 状态
        $('.j-qrcode2').opid('id', "/<{$routeUrl}>/qrcode2");
    });
</script>